//
//  Tool+PsychologicalCounselling.h
//  SeaMelonSeeds_Counselor
//
//  Created by 尤振宇 on 2017/7/15.
//  Copyright © 2017年 杨笑. All rights reserved.
//

#import "Tool.h"
#import "JHMacros.h"
@class TagSelection;

static NSString const *CustomMessageTypeKey                          = @"CustomMessageTypeKey";
static NSString const *CustomMessageOrderIDKey                       = @"CustomMessageOrderIDKey";
static NSString const *CustomMessageServiceIDKey                     = @"CustomMessageServiceIDKey";
static NSString const *CustomMessageScaleIDKey                       = @"CustomMessageScaleIDKey";
static NSString const *CustomMessageScaleTitleKey                    = @"CustomMessageScaleTitleKey";

//消息类型 图片类型

typedef enum : NSUInteger {
    FaceToFaceApplyFor_CustomSendMessage,         //面对面订单申请               OrderID
    FaceToFaceAgreeApplyFor_CustomSendMessage,    //面对面订单申请同意            OrderID
    FaceToFaceDontAgreeFor_CustomSendMessage,     //面对面订单申请不同意          OrderID
    
    OrderInformation_CustomSendMessage,           //支付成功后发送-订单信息        OrderID
    
    ApplyForDiagnosisRecord_CustomSendMessage,    //申请诊断履历                 OrderID
    AgreeApplyFor_CustomSendMessage,              //申请同意                    OrderID
    DontAgreeFor_CustomSendMessage,               //申请不同意                  OrderID
    
    TestTable_CustomSendMessage,                  //发送诊前量表                 ServiceID
    FillInTestTable_CustomSendMessage,            //填写量表                    ServiceID   量表ID  量表名称
    
    ServiceBegan_CustomSendMessage,               //开始服务                    ServiceID
    ServiceEnd_CustomSendMessage,                 //服务结束                    ServiceID
    UserConfirmEnd_CustomSendMessage,             //用户确认服务结束              ServiceID
    FillInDiagnosisRecord_CustomSendMessage,      //填写诊断记录                 ServiceID
    UserConfirmsTheEnd_CustomSendMessage,         //用户确认结束                 ServiceID
    UserEvaluation_CustomSendMessage,             //用户评价                    ServiceID
    
    
    
} CustomSendMessageType;

typedef enum : NSUInteger {
    tuwen_OrderType = 1,
    yuyin_OrderType,
    shipin_OrderType,
    mianduimian_OrderType,
} OrderType;


@interface Tool (PsychologicalCounselling)
+(void)setConsultantTitle:(NSArray *)array;
+(void)setHospitalTitle:(NSArray *)array;
+(void)setSkilledfieldTitle:(NSArray *)array;

+(NSArray *)AllConsultantTitle;
+(NSArray *)AllHospitalTitle;
+(NSArray *)AllSkilledfieldTitle;
+(NSArray<TagSelection*> *)getConfigDataByKey:(NSString *)key;

+(NSString *)TypeString:(OrderType)type;


+(NSString *)TextWithType:(CustomSendMessageType)type;
+(NSString *)ExtCustomMessageTypeKey:(CustomSendMessageType)type;

+(void)SendMessage_AcceptOrder:(int)orderID hx_username:(NSString *)hx_username;
+(void)SendMessage_RefuseOrder:(int)orderID hx_username:(NSString *)hx_username;
+(void)SendMessage_ApplyForDiagnosisRecord:(int)orderID hx_username:(NSString *)hx_username;
+(void)SendMessage_testTable:(int)orderID hx_username:(NSString *)hx_username serviceID:(int)serviceID;
+(void)SendMessage_ServiceBegan:(int)orderID hx_username:(NSString *)hx_username serviceID:(int)serviceID;
+(void)SendMessage_ServiceEnd:(int)orderID hx_username:(NSString *)hx_username serviceID:(int)serviceID;
+(void)SendMessage_FillInDiagnosisRecord:(int)orderID hx_username:(NSString *)hx_username serviceID:(int)serviceID;
@end

